/*
 * Copyright (c) 2023, 2023,yzc.cn All rights reserved.
 *
 */
package cn.yzc;

import org.springframework.amqp.core.Queue;
import org.springframework.context.annotation.Bean;
import org.springframework.stereotype.Component;

/**
 * <p>Project: RabbitMQ - SimpleConfig</p>
 * <p>Powered by yzc On 2023-12-25 14:05:10</p>
 * <p>描述：<p>
 *
 * @author yzc [yzc0415@126.com]
 * @version 1.0
 * @since 17
 */
@Component
public class SimpleConfig {
    @Bean
    public Queue queue() {
        return new Queue("queue-simple");
    }

    @Bean
    public Queue queueAsync(){
        return new Queue("queue-async");
    }
}
